from mqtt.common.common_constant import CommonConstant

"""
     sn 管理类
"""
class SnManager:
    device_sn_list = ["123456"]
    gateway_sn_list = ["123456"]
    @classmethod
    def add_device_sn(cls, sn: str):
        cls.device_sn_list.append(sn)

    @classmethod
    def add_gateway_sn(cls, sn: str):
        cls.gateway_sn_list.append(sn)

    @classmethod
    def get_device_sn_list(cls):
        return cls.device_sn_list

    @classmethod
    def get_gateway_sn_list(cls):
        return cls.gateway_sn_list

